home *** CD-ROM | disk | FTP | other *** search
- Path: news.fast.net!news
- From: "Chad R. Laity" <wick@pop.fast.net>
- Newsgroups: comp.lang.c
- Subject: HP UX 10.0 C programming
- Date: 4 Jan 1996 04:01:07 GMT
- Organization: FASTNET(tm) PA/NJ/DE Internet
- Message-ID: <4cfje3$qk@nn.fast.net>
- NNTP-Posting-Host: abe-ppp340.fast.net
- Mime-Version: 1.0
- Content-Type: text/plain
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
-
- 2 questions: (1) What is a good book for HP UX 10.0 C programming?
- (2) Why do I get an error on this cut down program listed
- below when I compile it on an HP 9000 K200 with HP UX 10.0
- and I do not get an error with our Intergraph server?
- (basically I just want to get the file size of a file but
- this buf problem is giving me a head ache)
- ----------------------- program ---------------------------------
-
- #include <stdio.h>
- #include <sys/stat.h>
-
- main()
- {
- int i;
- int stat(const char *path, struct stat *buf);
-
- i = stat("/usr2/test/testfile", &buf); /* line 15 */
-
- }
-
- ------------------------ error -----------------------------------
- Compiled using: cc -Aa test.c
-
- cc: "test.c", line 15: error 1588: "buf" undefined.
- cc: "test.c", line 15: warning 563: Argument #2 is not the correct type.
-
-